import { createRouter, createWebHistory } from 'vue-router'


const routerHistory = createWebHistory()

const baseUrl = "/platform"
const Router = createRouter({
    history: routerHistory,
    routes: [
        {
            path: '/',
            redirect: '/platform/home',            
        },
        {
            path: baseUrl + "/home",
            name: 'home',
            component: () => import('@/pages/Home/index')
        },
        {
            path: baseUrl + "/run",
            name: 'run',
            component: () => import("@/pages/Run/index")
        },
        {
            path: baseUrl + "/config",
            name: 'config',
            component: () => import("@/pages/Config/index")
        },
        {
            path: baseUrl + "/report",
            name: 'report',
            component: () => import('@/pages/Report/index'),
        },  
        {
            path: baseUrl + "/report/reportdetail",
            name: 'reportdetial',
            component: () => import('@/pages/Report/pyreport'),
        },
        {
            path: baseUrl + "/statistics",
            name: 'statistics',
            component: () => import("@/pages/Statistics/index")
        },
        {
            path: baseUrl + "/help",
            name: 'help',
            component: () => import('@/pages/Help/index'),
        }

    ]
});

export default Router;